package city.spring.modules.medicalstation.drugdeposit.vo;

import city.spring.modules.medicalstation.drugdeposit.entity.DrugdepositEntity;
import city.spring.modules.medicalstation.drugdepositDrugExt.vo.DrugdepositDrugVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 实体类：药品缴存
 *
 * @author 谢金婷
 * @date 2020-10-14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class DrugdepositVO extends DrugdepositEntity {

    /**
     * 该药品出库关联的药品列表信息
     */
    private List<DrugdepositDrugVO> drugs;

    private String bedName;

    public DrugdepositVO(DrugdepositEntity entity) {
        super.setId(entity.getId());
        super.setOldmanId(entity.getOldmanId());
        super.setOldmanName(entity.getOldmanName());
        super.setDepositdate(entity.getDepositdate());
        super.setDepositmethod(entity.getDepositmethod());
        super.setRegistor(entity.getRegistor());
        super.setRegistorName(entity.getRegistorName());
        super.setGmtCreate(entity.getGmtCreate());
        super.setGmtModified(entity.getGmtModified());
    }

    @Override
    public String toString() {
        return super.toString();
    }

}